package com.winhxd.b2c.order.dao;

import com.winhxd.b2c.common.domain.order.condition.OrderAfterSaleCondition;
import com.winhxd.b2c.common.domain.order.condition.OrderRefundInfoCondition;
import com.winhxd.b2c.common.domain.order.model.OrderRefundInfo;
import com.winhxd.b2c.common.domain.order.vo.OrderRefundInfoVO;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface OrderRefundInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OrderRefundInfo record);

    int insertSelective(OrderRefundInfo record);

    OrderRefundInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderRefundInfo record);

    int updateByPrimaryKey(OrderRefundInfo record);

    /**
     * @author zhanghuan
     * @date  2018年10月26日 下午2:11:57
     * @Description 查询售后退款信息
     */
    List<OrderRefundInfoVO> selectOrderRefundInfoByCondition(OrderAfterSaleCondition condition);

    /**
     *@author: zhangyanwei
     *@date: 2019/1/12 16:34
     *@Description: 根据退款流水号查询退款信息
     *@param: [refundNO]
     *@return: com.winhxd.b2c.common.domain.order.model.OrderRefundInfo
     */
    OrderRefundInfo selectRefundInfoByRefundNO(String refundNO);

    /**
     *@author: zhangyanwei
     *@date: 2019/1/13 18:56
     *@Description: 根据订单号和SKU查询退款信息
     *@param: [condition]
     *@return: com.winhxd.b2c.common.domain.order.model.OrderRefundInfo
     */
	OrderRefundInfo selectRefundInfoByCondition(OrderRefundInfoCondition condition);

}